<?php $this->load->helper('HTML');
echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?>

<div id="page1">
<div id="wrapper">
	<?php $this->load->view('admin_views/header'); ?><hr />
</div>
<div id="page">
	<div id="page-bgtop">
		<div id="content">
		  <div class="post">
    <form action="" method="post">
    <table border="0" cellpadding="1" cellspacing="1" align="center" width="100%">
      <tr align="center">
        <td colspan="2">Edit Data User </td>
        
      </tr>
      <tr>
        <td>&nbsp;Username </td>
        <td><input type="text" name="strnama_user" size="30" value="<?php echo $strnama_user?>"/></td>
      </tr>
      <tr>
        <td>&nbsp;Password </td>
        <td><input type="password" name="strpass_user" size="30" value="<?php echo $strpass_user?>"/></td>
      </tr>
      <tr>
        <td>&nbsp;Nama</td>
        <td><input type="text" name="strnama_asli" size="50" value="<?php echo $strnama_asli?>"/></td>
      </tr>
      <tr>
        <td>&nbsp;Privilege</td>
        <td><select name="intid_privilege">
           <option value="">-- Pilih --</option>
			<?php
				for($i=0;$i<count($privilege);$i++)
				{
					if($intid_privilege==$idpri[$i]){ $style="selected"; }else{ $style=""; }
					echo "<option value='$idpri[$i]' $style>$privilege[$i]</option>";
				}
			?>
        </select></td>
      </tr>
      <tr>
        <td>&nbsp;Cabang</td>
        <td><select name="intid_cabang">
			<option value="">-- Pilih --</option>
			<?php
				for($i=0;$i<count($namacabang);$i++)
				{
					if($intid_cabang==$idcabang[$i]){ $style="selected"; }else{ $style=""; }
					echo "<option value='$idcabang[$i]' $style>$namacabang[$i]</option>";
				}
			?>
			</select></td>
      </tr>
      <tr>
            <th></th>
            <td><input type="submit" value="Edit" class="button"/>&nbsp;<input class="button" type="button" value="Cancel" onclick="location.href='<?php echo base_url()?>user';"/></td>
        </tr>
      
 </table>

</form>
</div>

		</div>
		<!-- end #content -->
		<?php $this->load->view('admin_views/sidebar_master'); ?><!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	<!-- end #page -->
	<div id="footer-bgcontent">
	<?php $this->load->view('admin_views/footer'); ?></div>
	<!-- end #footer -->


